console.log('demo1')

const a = 10;
const b = 100;

// 通过exports向外暴露属性或方法
exports.a = '我是demo1.js的a'
exports.b = '我是demo1.js的b'
exports.fn = function (x, y) {
 return x + y
}

module.exports = {
 name: '盘林明',
 age: 31,
 sayHello: function (name) {
  console.log('hello ' + name)
 }
}
